package com.exam.entity.vo;


import com.exam.entity.Replay;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class MessageVo implements Serializable {

    private Integer id;
    private Integer temp_id;//解决id为null创建的一个临时id

    private String title;

    private String content;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date time;

    List<ReplayVo> replays;   //一对多关系，评论信息

    private Integer userId;

    private String studentName;

    private Integer pageNum;

    private Integer pageSize;
}
